<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
	<title>测试列表</title>
	<meta name="decorator" content="default" />
	<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
	    	return false;
	    }
	</script>
</head>
<body>
	<%@ include file="/WEB-INF/views/modules/euler/eulerNav.jsp" %>
	<form:form id="searchForm" modelAttribute="testEntity" action="${ctx}/euler/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>姓名:</label><form:input path="name" class="input-medium" htmlEscape="false" maxlength="50"/>
		&nbsp;<input id="btnSubmit" type="submit" value="查询" class="btn btn-primary" />
	</form:form>
	<sys:message content="${message}"/>
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr><th>ID</th><th>Name</th><th>Age</th><th>操作</th></tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="test">
				<tr>
					<td>${test.id}</td>
					<td>${test.name}</td>
					<td>${test.age}</td>
                    <td>
                        <a href="${ctx}/euler/form?id=${test.id}">修改</a>
                        <a href="${ctx}/euler/delete?id=${test.id}" onclick="return confirmx('确定要删除吗?', this.href)">删除</a>
                        
                    </td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>